package org.minbox.framework.microservice.common.entity;

import com.gitee.hengboy.mybatis.enhance.common.annotation.Column;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Id;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Table;
import com.gitee.hengboy.mybatis.enhance.common.enums.KeyGeneratorTypeEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 订单信息
 * @author ApiBoot Mybatis Enhance Codegen
 */
@Data
@Table(name = "order_info")
public class OrderInfo implements Serializable {

    /**
     * 
     */
    @Id(generatorType = KeyGeneratorTypeEnum.AUTO)
    @Column(name = "id")
    private Integer id;
    /**
     * 订单号
     */
    @Column(name = "number")
    private String number;
    /**
     * 商品编号
     */
    @Column(name = "goods_id")
    private Integer goodsId;
    /**
     * 用户编号
     */
    @Column(name = "user_id")
    private Integer userId;
    /**
     * 总价
     */
    @Column(name = "total_price")
    private BigDecimal totalPrice;
    /**
     * 购买数量
     */
    @Column(name = "buy_count")
    private Integer buyCount;
    /**
     * 添加时间
     */
    @Column(name = "create_time",insertable = false)
    private Timestamp createTime;
}

